package com.sdy.service.Impl;

import com.sdy.dao.mysql.SerialMapper;
import com.sdy.po.SerialPO;
import com.sdy.service.SerialService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SerialServiceImpl implements SerialService {

    @Resource
    SerialMapper serialMapper;

    @Override
    public Boolean update(SerialPO serialPO) {
        return serialMapper.update(serialPO);
    }

    @Override
    public Boolean insert(SerialPO serialPO) {
        return null;
    }

    @Override
    public List<SerialPO> findAll() {
        return null;
    }

    /**
     * 根据公司的id查找属于本公司的串口信息
     * @param id
     * @return
     */
    @Override
    public List<SerialPO> findByComandId(Integer id) {
        return serialMapper.getSerialListByCompanyId(id);
    }

    @Override
    public Boolean delete(Integer id) {
        return null;
    }
}
